@extends('default.layouts.companyPublic')
@section('title', '修改密码')
@section('headcss')
    @parent
    <link rel="stylesheet" href="{{asset('/default/css/company/modpassword.css')}}">
@endsection
@section('rightcon')
    <div class="right">

        <!--刷新简历-->
        <div class="jright">
            <div class="content">
                <div class="jobtitle">
                    <div class="tithead">
                        <ul>
                            <li><a href="{{url('company/set_account')}}">账号设置</a></li>
                            <li class="active"><a href="{{url('company/mod_password')}}">修改密码</a></li>
                        </ul>
                    </div>
                </div>
                <div class="rightMain">
                    {{--简历错误信息--}}
                    @if(count($errors)>0)
                        <div class="errors">
                            <ul>
                                @if(is_object($errors))
                                    @foreach($errors->all() as $error)
                                        <li><span>{{$error}}</span></li>
                                    @endforeach
                                @else
                                    <li><span>{{$error}}</span></li>
                                @endif
                            </ul>
                        </div>
                    @endif
                    <div class="jobInfo">
                        <form action="{{url("company/post_mod_password")}}" method="post" name="modPasswordForm" id="modPasswordForm">
                            {{csrf_field()}}
                            <input name="uid" value="{{$uid}}" id="uid" type="hidden">
                            {{--修改密码--}}
                            <dl>
                                <dt><span class="caption">旧密码</span><span class="asterisk">*</span></dt>
                                <dd><input type="password" name="oldpassword" id="oldpassword" value=""
                                           placeholder="请输入旧密码" tip="请输入旧密码"/></dd>
                                <dd class="errinfo"></dd>
                            </dl>
                            <dl>
                                <dt><span class="caption">新密码</span><span class="asterisk">*</span></dt>
                                <dd><input type="password" name="password" id="password" value=""
                                           placeholder="请输入新密码" tip="请输入新密码"/></dd>
                                <dd class="errinfo"></dd>
                            </dl>
                            <dl>
                                <dt><span class="caption">确认密码</span><span class="asterisk">*</span></dt>
                                <dd><input type="password" name="password_confirmation" id="password_confirmation" value=""
                                           placeholder="请输入确认密码" tip="请输入确认密码"/></dd>
                                <dd class="errinfo"></dd>
                            </dl>
                            <dl style="margin: 0px;">
                                <dt></dt>
                                <dd>注：不能使用空格，至少六个字符，区分大小写。</dd>
                            </dl>
                            <dl style="margin-top:5px;">
                                <dt></dt>
                                <dd><input name="sub" class="subs btn" type="submit" value="修改密码"></dd>
                            </dl>
                        </form>
                    </div>
                </div>
            </div>
        </div>

    </div>
@endsection
@section('footerjs')
    @parent
    <script type="text/javascript" src="{{asset('/default/js/jquery/jquery.validate.extend.js')}}"></script>
    {{--刷新简历验证--}}
    <script type="text/javascript" src="{{asset('/default/js/company/mod_password.js')}}"></script>
    <script>
        var _token = '{{ csrf_token() }}';
        $("#leftnav_set").addClass("active");
    </script>
@endsection